package per.hx.bs.web.yw.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import per.hx.bs.entity.yw.YwSignDO;
import per.hx.bs.util.Query;

import java.util.List;
import java.util.Map;

/**
 * @author HuXing
 * @date 2018/4/20  8:17
 */
@Primary
@FeignClient(value = "Huxingbs-Sys-Service")
public interface YwSignService {
    /**
     * 按条件获取考勤信息
     *
     * @param map 条件
     * @return 考勤信息
     */
    @PostMapping(value = "yw-service/sign/signList")
    List<YwSignDO> signList(@RequestBody Map<String, Object> map);

    /**
     * 按条件获取考勤信息数量
     *
     * @param map 条件
     * @return 考勤信息数量
     */
    @PostMapping(value = "yw-service/sign/signCount")
    int signCount(@RequestBody Map<String, Object> map);
}
